package com.ruoyi.system.mapper.process;


import com.ruoyi.system.domain.process.ProcessUnusualRibbon;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 异常和并卷关联Mapper接口
 * 
 * @author ljx
 * @date 2020-07-14
 */
public interface ProcessUnusualRibbonMapper 
{
    /**
     * 查询异常和并卷关联
     * 
     * @param id 异常和并卷关联ID
     * @return 异常和并卷关联
     */
    public ProcessUnusualRibbon selectProcessUnusualRibbonById(Long id);

    /**
     * 查询异常和并卷关联列表
     * 
     * @param processUnusualRibbon 异常和并卷关联
     * @return 异常和并卷关联集合
     */
    public List<ProcessUnusualRibbon> selectProcessUnusualRibbonList(ProcessUnusualRibbon processUnusualRibbon);

    /**
     * 新增异常和并卷关联
     * 
     * @param processUnusualRibbon 异常和并卷关联
     * @return 结果
     */
    public int insertProcessUnusualRibbon(ProcessUnusualRibbon processUnusualRibbon);
    int insertList(@Param("unusualId") Long unusualId,@Param("ribbonIds") List<Long> ribbonIds);

    /**
     * 修改异常和并卷关联
     * 
     * @param processUnusualRibbon 异常和并卷关联
     * @return 结果
     */
    public int updateProcessUnusualRibbon(ProcessUnusualRibbon processUnusualRibbon);

    /**
     * 删除异常和并卷关联
     * 
     * @param id 异常和并卷关联ID
     * @return 结果
     */
    public int deleteProcessUnusualRibbonById(Long id);

    /**
     * 批量删除异常和并卷关联
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteProcessUnusualRibbonByIds(String[] ids);
    int deleteByUnusualIds(String[] ids);
}
